package com.example.taco_cloud.taco.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:taco-${spring.profiles.active}.properties")
@ConfigurationProperties(prefix = "taco")
@Data
public class OrderProperty {

    int pageSize;
    String name;
    String pass;
    String age;
    String sex;
    String addr;

    @Override
    public String toString() {
        return "OrderProperty{" +
                "pageSize=" + pageSize +
                ", name='" + name + '\'' +
                ", pass='" + pass + '\'' +
                ", age='" + age + '\'' +
                ", sex='" + sex + '\'' +
                ", addr='" + addr + '\'' +
                '}';
    }
}
